from selenium.webdriver.common.by import By

from base import Base
class Page(Base):
    def find_me(self):
        loc=(By.XPATH,'//android.widget.TextView[@text="搜商品名称 作者 出版社 ISBN"]')
        ele=self.find_ele(loc)
        return ele
    def find_ss(self):
        loc=(By.CLASS_NAME,'android.widget.EditText')
        ele=self.find_ele(loc)
        return ele
    def ss(self):
        loc=(By.ID,'com.kongfz.app:id/tvSearch')
        ele=self.find_ele(loc)
        return ele
    def bbzs(self):
        loc=(By.ID,'com.kongfz.app:id/tvHitLeft')
        ele=self.find_ele(loc)
        return ele
    def goumai(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().resourceId("com.kongfz.app:id/ivPic").instance(0)')
        ele=self.find_wait(loc)
        return ele
    def dingwei(self):
        q=68
        e=1214
        self.dian(q,e)
    def huadong(self):
        x=359
        y=977
        z=359
        w=325
        self.hua(x,y,z,w)
